package pub.dsb.api.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import pub.dsb.framework.boot.rest.R;

/**
 * <p>
 *
 * </p>
 *
 * @author Yiyuery
 * @date 2020/8/26
 * @since 0.0.1
 */
@RestController
public class EchoController {

    @GetMapping("/echo")
    public String echo() {
        return "Hi DSB!";
    }


    @PostMapping("/decrypt")
    public R<String> data(@RequestBody String value) {
        return R.ok(value);
    }

    @PostMapping("/decrypt2")
    public R<String> data2(String value) {
        return R.ok(value);
    }
}
